package com.ruoyi.business.rule.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.handlers.JacksonTypeHandler;
import lombok.Data;

import java.util.List;

/**
 * 提成规则
 *
 * @author Jyl
 */
@TableName(autoResultMap = true)
@Data
public class JbRoyaltyRulesJson
{
    /**
     * 毛利率分界线
     */
    private String grossProfitRate;

    /**
     * 商品溢价分成系数
     */
    private String commodityPremium;

    /**
     * 赠品承担系数
     */
    private String coefficientOfGiveaway;

    /**
     * 订单提成比例
     */
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<JbRoyaltyRulesChildJson> orderRatio;

    /**
     * 业务提成比例
     */
    @TableField(typeHandler = JacksonTypeHandler.class)
    private List<JbRoyaltyRulesChildJson> performanceRatio;
}
